Skip to main content

TRREST_CNMQ

Trigger REST and Connector JMS samples

Sr. NoService NameDescriptionDetails
1.SendMessageToQueueGet the message as payload, add some addition info from db and send the msg to queue.
{
"name": "Frank Loyyd",
"mobile": "923234234234",
"id": 5
}
2.errQueueNotExistsSend message to Queue which does not exist
{
"name": "Frank Loyyd",
"mobile": "923234234234",
"id": 5
}
3.errMQisDownSend Message when Rabbit MQ is down
{
"name": "Frank Loyyd",
"mobile": "923234234234",
"id": 5
}
4.mqExceptionHandlingThis case involves handling of error data if there is any error while executing the mq step. In this example,we are providing incorrect ds information. This will fail to call the bean as the bean will not be created due to incorrect info. This error will be stored in "ERROR" object in the pipeline. Then we have step exception block where we have a step which will throw business exception, with message and code.
5.receiveMsgFromQueueGet message from a particular queue (one message at a time)